<?php
/**
 * 文件管理器
 *
 * @version   $Id: file_manage_main.php 1 8:48 2010年7月13日 $
 * @package   DedeCMS.Administrator
 * @founder   IT柏拉图, https://weibo.com/itprato
 * @author    DedeCMS团队
 * @copyright Copyright (c) 2007 - 2021, 上海卓卓网络科技有限公司 (DesDev, Inc.)
 * @license   http://help.dedecms.com/usersguide/license.html
 * @link      http://www.dedecms.com
 */
require dirname(__FILE__) . "/config.php";
CheckPurview('plus_文件管理器');
if (!isset($activepath)) {
    $activepath = $cfg_cmspath;
}

$inpath = "";
$activepath = str_replace("..", "", $activepath);
$activepath = preg_replace("#^\/{1,}#", "/", $activepath);
if ($activepath == "/") {
    $activepath = "";
}

if ($activepath == "") {
    $inpath = $cfg_basedir;
} else {
    $inpath = $cfg_basedir . $activepath;
}

$activeurl = $activepath;
if (preg_match("#" . $cfg_templets_dir . "#i", $activepath)) {
    $istemplets = true;
} else {
    $istemplets = false;
}
DedeInclude('templets/file_manage_main.htm');
